<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>班长的钱</title>
<script>
 var fs = prompt("输入班长口袋的钱") 
 if (fs >= 2000) {
     alert("请大家吃西餐");
 }else if (fs >= 1500) {
      alert("请大家吃快餐");
 }else if (fs >= 1000) {
     alert("请大家喝饮料");
 }else if (fs >= 500) {
     alert("请大家吃棒棒糖");
} else {
 alert("请班长下次把钱带够哦");
 }
  </script>
</head>
<body>
                        
</body>
</html>